﻿// -------------------------------------------------------------------------
//    @FileName         :    NFSnsModule.h
//    @Author           :    gaoyi
//    @Date             :    2025-03-29
//    @Email			:    445267987@qq.com
//    @Module           :    NFSnsModule
//
// -------------------------------------------------------------------------

#pragma once

#include "NFLogicCommon/NFMMODynamicModule.h"

class NFSnsModule : public NFMMODynamicModule
{
public:
    explicit NFSnsModule(NFIPluginManager* p);
    ~NFSnsModule() override;

    int Awake() override;

    int Tick() override;

    int OnDynamicPlugin() override;

public:
    int OnHandleServerMessage(uint64_t unLinkId, NFDataPackage& packet) override;

public:
    int OnHandleLoginRsp(uint64_t unLinkId, NFDataPackage& packet);
    int OnHandleLogoutRsp(uint64_t unLinkId, NFDataPackage& packet);

public:
    int OnExecute(uint32_t serverType, uint32_t eventId, uint32_t bySrcType, uint64_t srcId, const google::protobuf::Message* pMessage) override;
};
